UpdateSubresourceSafe<T>(T[],Resource,Int32,Int32,Int32,Int32,Boolean) Method
In This Topic
Copies data from the CPU to to a non-mappable subresource region.
Syntax
'Declaration
Public Overloads Sub UpdateSubresourceSafe(Of As {New, Struct})( _
ByVal () As , _
ByVal As Resource, _
ByVal As System.Integer, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Boolean _
)
public void UpdateSubresourceSafe<>(
[] ,
Resource ,
System.int ,
System.int ,
System.int ,
System.int ,
System.bool
)
where T: new(), struct
Parameters
- data
- A reference to the data to upload.
- resource
- The destination resource.
- srcBytesPerElement
- The size in bytes per pixel/block element.
- subresource
- The destination subresource.
- rowPitch
- The row pitch.
- depthPitch
- The depth pitch.
- isCompressedResource
- if set to
true
the resource is a block/compressed resource
Type Parameters
- T
- Type of the data to upload
See Also